package com.un.ebs.production.domain;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (ProductionWorkOrder)表实体类
 *
 * @author liubo
 * @since 2020-11-15 20:56:39
 */
@Data
@Component
@TableName("tb_production_work_order")
@SuppressWarnings("serial")
public class ProductionWorkOrder extends Model<ProductionWorkOrder> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;


    @DbField(name = "production_seq_item_id", length = 40, precision = 0)
    private String productionSeqItemId;

    @DbField(name = "production_order_item_id", length = 40, precision = 0)
    private String productionOrderItemId;

    @DbField(name = "plan_work_date", length = -1, precision = 0)
    private Date planWorkDate;

    @DbField(name = "work_personnel_id", length = 40, precision = 0)
    private String workPersonnelId;

    @DbField(name = "work_personnel_name", length = 100, precision = 0)
    private String workPersonnelName;

    @DbField(name = "plan_work_qty", length = 18, precision = 4)
    private Double planWorkQty;

    @DbField(name = "real_start_time", length = -1, precision = 0)
    private Date realStartTime;

    @DbField(name = "real_end_time", length = -1, precision = 0)
    private Date realEndTime;

    @DbField(name = "completed_personnel_id", length = 40, precision = 0)
    private String completedPersonnelId;

    @DbField(name = "completed_personnel_name", length = 100, precision = 0)
    private String completedPersonnelName;

    @DbField(name = "completed_status", length = -1, precision = 0)
    private Boolean completedStatus;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at", length = 40, precision = 0)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at_name", length = 100, precision = 0)
    private String createAtName;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @DbField(name = "plan_check_qty", length = 18, precision = 4)
    private Double planCheckQty;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}